import java.awt.Graphics;
import java.awt.Canvas;
import java.awt.Color;

public class Cherry extends Canvas implements Thing {
	
	private int x;
	
	private int y;
		
	public Cherry (int x, int y) {
		this.x = x;
		this.y = y;
	}
		
	@Override
	public void draw(Graphics g) {
		g.setColor(Color.red);
		g.fillOval(x * 30, y * 30 + 15, 15, 15);
		g.fillOval(x * 30 + 15, y * 30 + 15, 15, 15);
		Color clr_green = new Color(0, 120, 0);
		g.setColor(clr_green);
		g.drawArc(x * 30 + 5, y  * 30 , 40, 110, 90, 45);
		g.drawArc(x * 30 + 6, y * 30 , 40, 110, 90, 45);
		g.drawArc(x * 30 + 10, y * 30 -67, 30, 82, -140, 45);
		g.drawArc(x * 30 + 11, y * 30 -67, 30, 82, -140, 45);	
				
	}
	
}
